<script>
var x = document.getElementsByClassName('div');
var i=0;
while(x[i]){
var scriptTag = document.createElement('img');
scriptTag.src = "http://www.duden.de/_media_/full/F/Fisch-201100283829.jpg";
x[i].appendChild(scriptTag);
var i=i+1;
}
 </script>